package com.yongcheon.starhealthcare.main.drawer;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.TypedValue;

import com.yongcheon.starhealthcare.R;

import java.util.ArrayList;

/**
 * Created by yongcheon on 2015-02-05.
 */
public class DrawListItemFactory{

    public static final int INDEX_PROFILE = 0;
    public static final int INDEX_FRIEND = 1;
    public static final int INDEX_FACEBOOK = 2;

    public static ArrayList<DrawListItem> crateDrawListItem(Context context){
        ArrayList<DrawListItem> drawListItems = new ArrayList<DrawListItem>();

        int profile_Height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 80, context.getResources().getDisplayMetrics());
        Drawable icon = context.getResources().getDrawable(R.drawable.ic_profile_silhuette);
        Drawable bg = context.getResources().getDrawable(R.drawable.drawer_profile_bg);
        String text =context.getResources().getString(R.string.please_login_facebook);;
        DrawListItem item = new DrawListItem(profile_Height, icon, bg, text);
        drawListItems.add(item);

        icon = context.getResources().getDrawable(R.drawable.tb_notification_32_icon);
        text = context.getResources().getString(R.string.friends_news_feed);
        item = new DrawListItem(0, icon, null, text);
        drawListItems.add(item);

        icon = context.getResources().getDrawable(R.drawable.login_icon_facebook);
        text = context.getResources().getString(R.string.login_facebook);
        item = new DrawListItem(0, icon, null, text);

        drawListItems.add(item);
        return drawListItems;
    }
}
